from manim import *


class app(Scene):
    def construct(self):
        square_left = Square(color=BLUE, fill_opacity=0.7)
        square_right = Square(color=GREEN, fill_opacity=0.7)
        square_left.shift(LEFT * 2)
        square_right.shift(RIGHT * 2)
        self.play(
            square_left.animate.rotate(PI),
            Rotate(square_right, PI),
            run_time=2,
        )
